package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Article  implements Serializable {
    private int articeId;
    private String articeName;
    private String  articleImage;
    private String articleContent;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private int guruId;
    private Date articleDate;

    @Override
    public String toString() {
        return "Article{" +
                "articeId=" + articeId +
                ", articeName='" + articeName + '\'' +
                ", articleImage='" + articleImage + '\'' +
                ", articleContent='" + articleContent + '\'' +
                ", guruId=" + guruId +
                ", articleDate=" + articleDate +
                '}';
    }

    public int getArticeId() {
        return articeId;
    }

    public void setArticeId(int articeId) {
        this.articeId = articeId;
    }

    public String getArticeName() {
        return articeName;
    }

    public void setArticeName(String articeName) {
        this.articeName = articeName;
    }

    public String getArticleImage() {
        return articleImage;
    }

    public void setArticleImage(String articleImage) {
        this.articleImage = articleImage;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public int getGuruId() {
        return guruId;
    }

    public void setGuruId(int guruId) {
        this.guruId = guruId;
    }

    public Date getArticleDate() {
        return articleDate;
    }

    public void setArticleDate(Date articleDate) {
        this.articleDate = articleDate;
    }

    public Article(int articeId, String articeName, String articleImage, String articleContent, int guruId, Date articleDate) {
        this.articeId = articeId;
        this.articeName = articeName;
        this.articleImage = articleImage;
        this.articleContent = articleContent;
        this.guruId = guruId;
        this.articleDate = articleDate;
    }

    public Article() {
    }
}
